Fix router order

My previous PR broke other image routes as the route was cathing all of them. Sorry for that. This one is to fix that (by changing the order of route definitions).