sprite-retina-position function