Unfortunately testing images have diiferent sizes, first one and second. I can check for example image size before and after manipulations, for example, and use gtest check you suggested.