removes unnecessary ToolPageContext method, writeEmbeddedObjectPreview