File service made generic and images read in separate files