adds new check-create-image code.
Merge pull request #48 from birkin/master

adds new check-create-image code.