Image cropping from the frontend