Implemented image cropping and preview (client-side)