use halfPixelInverse to prevent pixel align issues (gt3)
bugfix when baseDir is absolute