add variant of Rect::expand() that allows different amounts in each direction