removed filter margin for full-screen effects (closes #351)
enhanced margin calculation to avoid hard edges