OCCAM: Towards Cost-Efficient and Accuracy-Aware Image Classification Inference