Improved pxToMM conversion
We can now handle images passed as data uris.