Image loading works.

These bugfixes make me feel smart.