[PATCH v2 04/21] fwu: add helper functions for getting image description offsets