[enh] added option to invert image colors
[enh] docstrings ++ code formatting
[fix] min/max x,y