added retina option and fixed display bug