move image editor into separate plugin