begin work on image routing, also major route refactoring