Saving uploaded gallery images to the file system with their ID