bug fix for problem with more than 4 layers crashed Cesium. Tested with 30 records, ok. Presumably could handle more, but images would be slow to download.