retina support
Refactor