Basic image retrieval, cmdargs does not work