add creating of thumbnails on server side