added piping support, optimized pixel loop by caching values of points in polygon
added piping support, optimized pixel loop by caching values of points in polygon

kevinGodell/pam-diff,kevinGodell/pam-diff