fix loading image size error