Set background styles and image sizes when drawing.

Set background styles and image sizes when drawing.