Add wrapper for use perceptualdiff functional as library