added missing brackets for checking filenames

in order to allow filenames as "imgcopy(1).jpg" as previews