Hit masking help please

I am trying to mask an image so  when i shoot  the bakk at it. it doesn’t hit the bounding box it only hits the textured part.

I have tried this http://docs.coronalabs.com/guide/media/imageMask/index.html#TOC

and can’t seem to get that to function correctly.

mask

imgae

here is my code please help.

 local mask = graphics.newMask("gfx/8\_55\_M.png") local rect55 = display.newImage("gfx/8\_55.png") rect55.x, rect55.y = 472,413 rect55:setMask( mask ) rect55.maskx, rect55.masky = 472,413 rect55.isHitTestMasked = false physics.addBody(rect55, "static", {density = 1.0, friction = 0.3, bounce = 0.5, isSensor = false})

thanks.