refactor of Pixel structure