Removed blend_op as it relies on dispose_op which is not implemented
Simplified readUnsignedBits by reading one byte at a time