Edited get canvas context.