Image-Based Perceptual Learning Algorithm For Autonomous Driving