Cleaned up the code used to spawn buttons for gallery images in the CMS.
Implemented ability for gallery images to be deleted from albums.