class FastImage

def read_int(str)

def read_int(str)
  size_bytes = str.unpack("CC")
  (size_bytes[0] << 8) + size_bytes[1]
end