minor changes, binaryimage struct added