added canvas clear method every loop tick