Instead of using Rectangle and ImageBrush, try using Border and Image tag.
Set MaxWidth and MaxHeight properties of the Image tag to specify the maximum width and height supported. Image will be shrink to fit in the size specified.
<Border Borderbrush="#395984" Borderthickness="2">
<Image Source="./images/iq.png" MaxHeight="20" MaxWidth="20"></Image>
</Border>