improved the image editor