AttributeError: 'JpegImageFile' object has no attribute 'read'

Answered here.