Add refresh method to canvas