54 fix image load issue

First commit cleans up stray whitespace as well as makes changes that didn't work. Second commit fixes the problem.