Add test for image corruption issue