Fixed problem with not showing picute in canvas.

-This bug occured on some mobile devices.