Implement a simple heap-based Image buffer