fixed image data range bug