Updated to_protobuf() to accomodate Image and Video Substrates