PHP - takes a directory of images and displays thumbnails on a page, with a checkbox next to each, click thumbnail to enlarge image