procedure for filling out type image according to height image