[PATCH v4 09/15] image: Update image_decomp() to avoid ifdefs