added retina detection