Included functions for hard and soft image classification