improvements to elementFromPoint