mesh dfu distributor image size

Hello

I am playing with the mesh dfu and the distributor application on nRF52840 DK board

I load the image I want to distribute using mcumgr application on a Raspberry pi

Noticed a discrepancy in the image size listed by the "ls -al" command on linux and the size returned from 

boot_read_bank_header(FIXED_PARTITION_ID(slot1_partition), &header,sizeof(header)) API on the distributor.
The size of the header.h.v1.image_size is 633 bytes less than the one reported by the file system.
As a result the  image is transferred successfully to the target but fails to be applied. And the 'mcumgr list image' command does not list the image in slot 1 on the target device after the transfer completes
If I specify the image image size listed on linux in the 'mesh models dfu slot add' command the transfer and image swap succeed
This must be some sort of a header `
The question is, is the size fixed or will vary from image to image? If the latter - where can I obtain the size of the header so I can add it to the header.h.v1.image_size returned by boot_read_bank_header() API?
Thanks
Related