PixmapMask methods to compute selection bounds