How to do monochrome (LV_COLOR_FORMAT_I1) image rendering on lvgl v9

Code

The code block(s) should be between ```c and ``` tags:

/*You code here*/

Screenshot and/or video

If possible, add screenshots and/or videos about the current state.

I am working on a project that should do image rendering for both rgb888( 24 bit per pixel) and I1(1 bit per pixel) using lvgl.
I am facing issue in image rendering with LV_COLOR_FORMAT_I1(version 9.2).

How to solve this issue?