resize input image in printImage