changed smooth.cpp to define function prototypes of pixel class