making path to image storage dynamic