Fixed reversed image.scale in macos