Fix selectedFiles when coming from commandline
Silence wx image errors
Merge pull request #867 from egbertbouman/cmdline_fix

Fix selectedFiles when coming from commandline