/// <summary>
        /// Set a new bitmap and paths for the editor.
        /// </summary>
        /// <param name="bitmap">Bitmap for the new frame, can be null if no image is required</param>
        /// <param name="container">The container for the new frame</param>
        public void SetNewFrame(Bitmap bitmap, IPathContainer container)
        {
            if (container == null)
            {
                throw new ArgumentNullException("PathsContainer cannot be null");
            }

            editorStateControl.SetPathsContainer(container);
            editorStateControl.SetIdle();

            bufferControl.SetContainer(container);

            renderer.SetFrame(bitmap, container);

            glControl.Invalidate();
        }