Fix rem addon. Rename $pxval to $size

Closes #348