Prune and distill: similar reformatting of image information along rat visual cortex and deep neural networks