Sorry i named the variable wrong. it should be `minBytesPerRow`. Its min because we already now that the pictures are the same size and we can choose the smaller number of bytes per row.