Updated try/catch, fixed logic that checks if cropping was requested