Improving object classification by simultaneously learning object and contextual cues