fixed index jpg to jpeg