Updated to upload pictures, create thumbnails and save in user
specific dir. Create user specific galleries dir if not already
present on registration of users.