New: imwithbuff