generates image sitemap. needs improvement