image extension fix