changed image extension to jpeg