remove unused attribute from canvas