fix cropping
Convert from linear to histogram-based color equalization