def _get_raw_data(self, image, format_, quality, image_info=None, progressive=False):
raise NotImplementedError()<EOL>
Gets raw data given the image, format and quality. This method is
called from :meth:`write`