using getBounds instead of getRect

getRect sometimes disregards some shapes borders, resulting in textures cutted from edges.