Add isLocalUrl and convertOpacity methods