Gen-dep: add deps support; get rid of image tree