Fixed issue where reloading the same image failed