Image src checking sometimes may fail