def __init__(self, fileName,ident=None):
        # check if the file is remote, if so, download it to a temporary file and reset fileName
        self._isRemote = _getIsRemote(fileName)
        if self._isRemote:
            fileName, self._format = _getRemoteFile(fileName) 
        else: 
            self._format = _getFormat(fileName)
        
        if self._format != 'jpg':
            raise IllegalFormat(fileName, 'JPG')        


        ImageReader.__init__(self, fileName, ident)