Fix canvas sizing

This fixes #43