updated setCroppedImage method so croppedImage can be copied