better API for getPublicUrl. breaks backward compatibility
Release 2.0.0