change function signature of ConstituteImage
change function signature of ConstituteImage

This commit also refactors the type assertion from ImportImagePixels
into a separate function that both ImportImagePixels and ConstituteImage
consume.

yoya/imagick,yoya/imagick