clear image buffer