Cortex-inspired goal-directed recurrent networks for developmental visual attention and recognition with complex backgrounds