moved deleting of docs to beginning
fix incorrect img/ path