Add photo cropping logic