adding code to create "image features" by sum/max transform over each pixel