Test script to show problem with canvas rendering