Generation of unsigned byte type img in AbstractOpTest.