Updated canvas to include function to detect if device is a retina display.