@classmethod
def store_image(cls, http_client, link_hash, src, config):
    """        Writes an image src http string to disk as a temporary file
        and returns the LocallyStoredImage object
        that has the info you should need on the image
        """
    image = cls.read_localfile(link_hash, src, config)
    if image:
        return image
    if src.startswith('data:image'):
        image = cls.write_localfile_base64(link_hash, src, config)
        return image
    data = http_client.fetch(src)
    if data:
        image = cls.write_localfile(data, link_hash, src, config)
        if image:
            return image
    return None
