Fixes centering of lightbox when no image present

Check whether .lightbox content includes an image before
using the image's size values.
Merge pull request #31 from xixixao/fixcenterimage

Fixes centering of lightbox when no image present