Output two values from imagePreProcessing

Output two values from imagePreProcessing. One is the edge detected
test image, other is the file required for learning necessary
transformations.