I hate to suggest the obvious, but perhaps the error is correct. Did you try changing the ".jpg" extension to ".png"? That might fix you. The extension in the name is just a hint as to the file's contents. Some programs don't care and will happily let the two disagree. Others require that they match. Regardless, it cannot be assumed, simply because the file name ends in ".jpg", that it's a JPEG.