resize image before sending it to the printer