Reinforcement Learning of Visual Features