added retina calculation