Fixed bug in image sitemap
(cherry picked from commit d250c280b9eaf54f242540cd35ae303fdcf7c949)