Fixed reversed image.scale in macos

image.scale has its parameters reversed on MacOSX. This makes the captured image all black.