Add dist functionality to make heddle.img