switched to rects from bitmaps