Loading images correctly

Fixes #48