Edge detector converted to use Bitmap class.