added undo, improved editing interface, photo extension