Angular directive for wordpress gallerypicker