added support for training the support vector machine and semantically parsing JPEGs