Prevent scaling of images that would result in non mod-16 dimensions