Added different rects for drawing shadows, border and image