move pixel inversion to ImageData method
imageData method for converting to BW (each channel = mean intensity of all channels)