Initialize canvas more efficiently