added image serving, and mapped internal ids to filenames