the jmeter still not exclude the .gif OR .png extension from record
JMeter's HTTP(S) Test Script Recorder provides "URL Patterns to Exclude" input so you can specify what you want to exclude there.
The tricky part is that the input accepts patterns - Perl5-style regular expressions
So if you want to exclude .gif and .png files from being recorded add the following line to aforementioned input:
.*\.(gif|png)
You might also be interested in Excluding Certain Domains from the Load Test