findAutoContrastVminVmax: bug fix, the function was supposing input was
always RGBA