public FormEditor(Image img, Action<DragCallback> callback) { InitializeComponent(); this.img = img; this.g = Graphics.FromImage(this.img); this.callback = callback; this.Stage.Image = img; this.Width = img.Width + 50; this.Height = img.Height + 100; }