Added code to extract JFIF/APP0 thumbnail