added image buffer