Added edge detector and gradient for binary files.