Added some fixes for a project with one non-social avatar only. Also added devalidation of thumbnails on image update.