modify to ignore only image format changed