I see the problem and why it work on localhost with no . in the domain name.
Where as it is using:
How could I make this work to just look for the image name after the last / of the src in the image? I am not very good with regular expressions if you can help me out please.