change resolution of output image