Created ImgBuffer class