Fixing image extensions