NodeJS gm command line script to check picture input if day, night or evening/morning