create canvas element and get context for it