Fixed issue with setting unwanted disallowed styles by image dialog.
Wrapped image plugin test in IIFE and added strict mode.
Tests: added for #12132.
Tests: Set editors to inline mode in image plugin tests.