.jpeg file handling error