BUG Do not change image values when saving

libtiff changes image values inplace when using prediction