working on image rendering