[PATCH v2 2/6] image: fit: Add some helpers for getting data