image inverter working