Image extension fix