Change rem function

Hi !

I write a new function for having a pixel fallback when use rem, and it's maybe optimizable.