small improvments
check if canvas is available