Cross domain detect when image loaded