regex to check is graphic file or movie