Fixed bug where all keyboard events are consumed by the library.
Removed window.onresize function and added parent property to config parameter. The parent property is used for placing the SVG layer for drawing regions on the image.