picture download refactor clear