make image list html more generic