provision/docker: created image struct to hold image related actions

Also moving the commit method from container to image struct.
Relates to #409