Squeeze image dimensions