made image check if loaded