added better safari support, still limited to nameless dataURL operation...