updating image path