fix save region of image