Add exception for jpeg files.
Decode data to another variable first.