Plugin Draw Resonators: Create callback function in render