Cropping image before sending it