Added semi-intelligent loading of images.  Closes #8.