fixed the thumbnail function, now each user can have their own picture