Vanilla JS function to checkwhether the image is not returning 404 or timeout
No-Library (pure JS), HTML, CSS, JavaScript