Add error reporting for some SDL/tiles related functions.

This PR adds some error checking & error reporting.

Error messages go to DebugLog, which writes to logg.txt (shouldn't that be log.txt?).

Now it gives at least some information about *why* it could not load the images.