Remove unnecessary calls to Image.open
Add tests for the --scale option