uploads images and correts their paths in docs