made output sizing automatically fit canvas