Abstract routes for future formats

As #122 this PR abstracs the routes in order to serve the image without format.
In this way we can change the format of the image without bracking old links.
In addiction I added some fix on routes misconfiguration and tests
ahah