fix screenshot scripting problem in wx. still fails using qt backend