image: Moving set options to shebang line and adding option 'u' to check
undefined variables