Fix for properly detecting load of images if images are already loaded