Basic image retrieval, cmdargs does not work
Extracted image downloading to a function.
Merge pull request #134 from engina/master