Fix the bug with dark images with new ImageMagick