Fixed to build on Rust 1.28
Fixed to build on Rust 1.28

Using Self::Variant on enum's was added in 1.37.0. This commit goes back to
using the old method of using the actual enum type.

image-rs/jpeg-decoder