Fixed error with legend size in PNG output.