approximate behavior of generateFilterRect for blur based filters