Got the base and overlay caches working again. Still a bit slow and could be optimized. Also, there is some bug when you click the axial and then the sagittal the sagittal view changes even though it should not (is it getting coordinates from the slider?)