Robust Image Classification with Context and Rejection