Add initial version of image loader. Still very flaky with lots of work to do.