add return value for image attachment in messages