added link pics subcmd. cleaned up pics cmd code. made lib pics read only