Implemented image object factory.
Merge branch 'master' of github.com:yangshun/nimble