add example code for image rendering