Transform matrix and isInPathGroup fix for images

This code fixes image position for tags with transform="matrix(-2.3668 0 0 2.3925 244.17 27.1837)"> attribute.