rectangle uses x, y, width and height