added method for retrieving CGRects for drawn images