Check endian-ness.
Check supported image formats (in particular, RGBA32 and RGB16, the two supported in color.h).