* Added new on_render_start for render initialization * Changed on_resize to execute inside the render thread