Ported imgdownload to jade