You have to create a custom message which includes the sensor_msgs/Image as well as the additional data that you want. Those could be primitives (e.g. int8) or other compound messages (e.g. geometry_msgs/Polygon, not quite sure if this specific one helps, though).