Added image download functionality