implement createImage

The Docker API for this is pretty bad. :wink: