if (-f && !(?:jpg|jpeg|gif)$!i)