improved the pixel editor to support 2-way editing.