image buffer class - 2