Bug 150347 Support binary stream as preview image.
See 144843. We need model to save binary strame as report preview image. Currently, preview image is an external image. Maybe need a type to distinguish preview image type.
model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/command/NameSpaceRecord.java
if ( add && !undo || !add && undo )
		{
			if ( element instanceof ReferenceableElement )
			{
				ReferenceableElement originalElement = (ReferenceableElement) root
						.resolveElement(
								element.getName( ),
								nameSpaceID,
								element
										.getPropertyDefn( IDesignElementModel.NAME_PROP ) );
				ns.insert( element );
				
				root.getNameManager( ).dropElement( element );
				if ( originalElement != null )
					updateAllElementReferences( originalElement );
			}
			else
			{
				ns.insert( element );
				
				root.getNameManager( ).dropElement( element );
			}
		}
		else
		{
			ns.remove( element );
			if ( element instanceof ReferenceableElement )
				updateAllElementReferences( (ReferenceableElement) element );
		}
	}