corrected missing import q in fetch image
iterated version