Now my biggest concern is if I remove it, it might hamper some of the functions such as image sliders etc. Is there any other way I could fix this issue?
Very good question! Without knowing the history / development of your site, changes to your server, etc, I cannot speculate.
I was actually not looking for the php code, but instead which plugin is loading the images. The problem could be in any one of these files:
[Code moderated as per the Forum Rules. Please use the pastebin]