title: Displaying GreyScale image using inverse map
body: <p>I have a matrix like [0.1, ....0.7..0.3] (100+ elements containing a max and min value)
  How do i convert this into greyscale image, such that 0.1(min elements) has brightest intensity (255) and the max element has 0 (0.7 in this case)</p>