Check for NULL
Check for NULL in SetImage
Throw exception on errors, and handle padded input buffers
Windows console dislikes unicode, handle those errors