Fixes vertical position
Fixes bug that prevented creating Image or Text overlays
Removed window var