Read a JPEG image

Will be useful for image-based textures.