added approximate getBounds for vector drawings