Ignore imagebutton mousebutton1click event when mouse is not on the image

i have an image button thats not a rectangle. design wise its fine, but with events like “mouseenter” and “mousebutton1click” they fire when the rectangle box of the ui is clicked/entered on
So how do i do it so it ignores those times when it is on the rectangle (background), but not on the actual image?