image extension correction