Fix a bug of loading image position