reimplemented film grain efficiently