… or “Just how difficult can it be to store metadata in a file”.
Some images – especially JPGs – can contain extended metadata. For example, if the image is from a camera then the camera manufacturer, exposure, focal length, flash details and such may well be added as metadata. Read more