added new options: canvas_class, loader_class