free cropped image to prevent memory leak