Add support for loading images from a byte array. Also add ImageFormat to Pix class. Test cases are included.