added back SortThumbs with a rewrite for new image layouts in JSON

Also fixed an improper loop (loop only runs on main shows listing now, it had previously run on all show queries without need. this should speed up the plugin a lot)