Add shebang and encoding lines
Use getopt to parse the path of the image instead of using a hard-coded one