Function to convert REM to PX.

Close #994