Improving agent performance in fluid environments by perceptual pretraining