re: #235 - Only lightbox if mime-type passes

* removed some no longer needed variables from _record.html.erb
* added logic so that all images are mime-type checked to insure that the URLs resolve to images and if not, the lightbox functionality is removed