Initial import.
Switched to grabbing a slice of the data to ignore the data prefix. Forced the image to be a JPEG. Put in a basic error message.