How do I run a headless image with a file argument?