Implementation of Partial Least Squares Imaging