Fixed image inversion bug with imshow and transformed images.

Updated documentation for imshow.
Added automatic sensible transformed image resolution capability to
imshow.