Fix for retina display and save canvas.