Throw PackagerException is image is none.
Tests for PackagerContext.
Merge pull request #13 from norrs/packager_context_tests

Packager context tests