Fleshed out Imgadm create function