Adding support for getting element's size and fixing location API