add canvas doublebuffering due to flickering on mobile