added image to layout, add pixel edit method