fixing clear picture tmp

It skip's the directories. Now a new method clear the dir recursively