change output image size to be a power of two.