replace RenderToPixbuf as it is obsolete