Add edge detection for 8bit images.