fix(api-redirect): update regex used for determining when to redirect

With the old redirect, repositories with "png" in the name got redirected as well as images.