code to detect retina display