mkdir(.'thumbs', 0777, true); added