Updated classifier to use member variables for width and height of image