PIM image feature creation code