edit last image element