added retina detection to cookie