fixed imshow to use origin, fixed maxima plotting