but the image is shown 3 times on the screen.
Sounds like you are supplying a VGA (31khz) signal into a CGA (15khz) monitor.
Research a video card like ArcadeVGA or software like Powerstrip or Soft-15khz.
I don't personally mess with this sort of thing much, so maybe others can be more specific.