Fixed some bugs with the lightbox. There are still quiet a few left to fix, but at least it is useable in a basic sense now.