Mouse visual cortex as a limited resource system that self-learns an ecologically-general representation