Ghex is a tool which helps us to view and edit the hex data or hex dump of an image.
$ sudo apt install ghex
Using ghex we can see the headers, footers, and the data chunks of an image. It is to be noted that ghex can be used for all types of files not only images.
$ ghex image.jpg
For more information about the tool,
$ man ghex