Use rectangles instead of pixels