check that lightbox aspect ratio is correct, fixes #123 and #122