TST: tests for read_img_data function