resizes writing background image