changed from images to rectangles