So this is my problem. I replace an image with the same name on server (cpanel) and it is still showing the old image, this is happening with other files too, and even if I delete the image it is still there on the site. How do I fix this?
Clear everything. Even if you think you have, just be safe and clear your cookies and cached images for your site.
The other possibility is that you've named it the same but with a wrong case. Remember HTML and PHP is case sensitive when looking at file names.
Let me know after you've attempted these.