Better error handling for cropping; pass  and  into the_resized_post_thumbnail()