Revert "Revert "add retina related hi-res code""

This reverts commit ee7d1c5b09908a50e92564a4df361d365edd2ea7.