Bugfix in cropAndScape() method