only add dimensions if no canvas was provided