What functions do you use to crop the image? Do you also rotate the "crop rectangle"?