The Order of DEM Creating Steps

the strange values at the edge of images result from different coverages of both images.
Please have a look at this post and especially falahfakri’s answer