Added optional wait to show_capture to help with taking screenshots