Skeleton for generatin terrain from img