allow reading from end of file
make binaryimage compatible with offsets from end of file