adding support for inverting selection overlay