added rect for background, text, border and image