created piclib.Add function. cleaned up pic put impl