pic field now handles any id. field datetime is partly ported in this commit