Image processing: minimum, medium, maximum