Imaging of I Zw 18 by JWST. I. Detecting dusty stellar populations