Use directive and add method obtenerUrlImagen at directive