Prepend width/height to path instead of append

Because width and height always comes first, this allows selecting a
cadegory/image number using the path, and then the size as query params.