test coverage for some issues that have cropped up in our apps
when someone tries to cache an empty image/key, don't crash in production
handle invalid alpha options; creating bitmap context may fail
Merge pull request #32 from sixten/gif-fix

Fixes for a few processing failures