Fix invalid inclusion of %% in image attribute sequences

This escape sequence is for a % literal, not for image attributes.