doublet near a wall

code works but plot is still generating all images onto one figure