fixing image extension