fix imagedownload bug