The invert function now returns an image with the frequency of the observation.