updated "RenderObjectExt.h" for general box drawing