added new functions to process images of ImageCategorizaton experiment