Naive way of implementing getBounds()