add scoped GdiPlus initialization