Fixed incorrect starting point for jpeg file pointer