Added functions for deleting images (not yet used)
Storing thumbnail version of uploaded images to db.
Thumbnails are now clickable to view full version. Can also select multiple images with checkbox feedback, after clicking 'select images' button.