Fixed a bug witch which loaded images were generating null-pointer exceptions after the lightbox has been closed. Added functionality to free-up memory for small and full-sized images.