Fix image extension problem