Modify the path of uploaded images