Auto-crop filter