Now the function is applied inline in TikZ.Simple.pathImage.