Fixes old image shown when enabling imagediff