add image pulling
add better createImage
fix error
add fail test
Merge pull request #17 from Runnable/image-pull

add image pulling