Added more support for larger images in the classifier