fixed problem of Inverter with signed image types: use x*(-1)-1 instead of x*(-1)