fixed route and saving image file