added the pics model and pics controller