Statistics, models and learning in BCM theory of a natural visual environment