adding high-pass filter method to image processing code