Fix image loading events