Fixed unloading image problem