Visual learning and its application to sensorimotor actions