Check for errors after calling SDL_image functions

Fixes #20
Implement wrapper for SDL_image init/deinit

Fixes #21
Merge branch 'sdl_image'