How to convert the Image entity into a face with material?

This is related to How to implement the conversion from Image to texture? - #14 by tt_su - right?