Got rows of list to work in one row each. Still need to fix the header row. Also added some isset in case no media files exist for a record.