added HDPI support for MAC