Text this: An Optimized Deep Neural Network Model for Image Classification in Resource-constrained Environments