Replaced rectangles with images