Correctly detect the Quantum depth with newer versions of convert.
Update the headers for ImageMagick 6.8.9.