Helper that detect the size of the image to be download

def _detect_size(self, url):
        """ Helper that detect the size of the image to be download"""

        site = urllib.urlopen(url)
        meta = site.info()
        return float(meta.getheaders("Content-Length")[0]) / 1e6