correct image extension