Lazy rendering to get screenshot from the RESTful web application