provide some sensible placeholder for scale, something like scale=${0:0.8 \textwidth} or so.