update to R image rendering demo