resolved the download issue where orignal image got downloaded instead of thumbnail