Oh ok,

I'll try with the detection.
But where should I place it?

In the Html under the body tag or somewhere in the css?

And about the errors, those images doesn't need to be shown on the website, so it's fine. Unless of course if that has anything to do with it not beeing able to be centered.
But I don't think that why.