bug fix in image downlaods