The reason that Ralsei knows the layout of the school is simple, it's because Kris and Susie know the layout, as they imagined him so his knowledge of the light World and the prophecy
yeah I have a theory that IMAGE_FRIEND and Ralsei are Imaginary friends that gained life in the dark
that's why they both can go between dark worlds independently from Kris and Susie.