Refactor P.SUNFLOW renderer and take care of more warnings