added jpg extension filter