Fixed GetCroppedImage extension method.