Detect and use retina resolution for canvas mode