[PATCH v2 09/50] image: Update image_decomp() to avoid ifdefs