Fixed the image filtering