Only scale and crop when necessary

When there is nothing to resize or crop, those operations should be skipped.