Image prefiltering