Added delegate methods. Disabled rasterization.
Fix a bug about appearance callback.