using argv[3] as image dir location