Factor out pixel buffer from DOM specific ImageData class