Add the thumbnail functionnality on upload