Script now allows the use of ~ for home directory in pict_dir variable.