updated code for the generator to contain the cms id in the url img
table.