Add ability to preload images.

fixes #1