update imagedownload class.