add id value for image attachment in messages