commiting a screenshot of wx window