The starting 2 to 8 bytes are used at times to identify the file type of a binary file. You
can see what those bytes are in hex format with the
> xxd -len 8 beach.png 00000000: 8950 4e47 0d0a 1a0a .PNG....
xxd is a command used to create hex dumps.