Converted the image input from command line argument to stdin input

This change allows working around the limitted since a spawned command has. (See #33)