Implement lazy loading for non-gallery images.

[Resolves #42]