Added code to enable/disable the display of the current frame when onion skin mode is enabled