fixed checksum bug. And other path related bugs in Taken func and in pics cmd.