improved isVisible a lot. Now it checks wether some part of the element is actually visible.