implemented img_path, figured out how to change doc in mongodb