convert main() to display image using go.wde rather than output to file