Use Unique ptr wrapper where Send ptrs are required
Changed set_clip_rect parameter to an option