upload pic and create thumbs