added the type field to pic and picture to distinguish between left, right and id pictures