How do I get VisualElement (Image) internal image rect?

I’m trying to make a paint-like editor with VisualElements. I created an Image element which derives from VisualElement, I want to listen mouse events (move, click) over this “canvas” image and draw over image texture. The problem is that I can’t map mouse position onto a texture because I don’t know how to get this internal picture rect. The image is square and I set Image sizing to match smallest of width and height, and equal (square)