Fixed a bug that plugin to show up with incorrect window size (likely 512x512 pixels) at initialization.
Changed internals to speed up.