Generate images at servlet level. Images are looped at index.jsp