Adapt resource picker directive to last version of the resource picker