Added toggle transparency as a hook when new frames are created