Added the setup canvas function