Contour lines Image, elevation,

hello, I would like to help me as when I create an image with contour lines, the result I create is rotated and mirrored from the original one. For example, I attach you the image that I use as input and the contour lines that are extracted.