Added basic retina support

Issue #1251