Fix image loading process