Handle case where the canvas is hidden (height and width are 0)
Trying to add layer loading start and end events