generate screenshot when required
add prerender calss