modify extension for JPG