Move middleware back to imgscale. Returning interface compatible with
both Martini and HandleFunc instead