Added build image functionality