Test refactoring image route functions to generate API docs.