add test that checks image buffer