Fix error in testing for modified image file