Using ImageBuffer directly