Fixed blob to HTML conversion and added rendering hook.