Small Preview.setCanvas refactor