Added some painting functions for (not)input/output for the gates