Add data uri svg shape-image-threshold test

Also update the other shape-image-threshold test to be more robust