Now it doesn't crash when adding a spell.

But, it still doesn't add the image to the screen.