Fix an issue in serrate and ellipse function.

Enable retina scale factor.