Route for saving images, refactoring for generateImageUrlExtension method