fix couldn't download images with query string