Finally fixed the image editor.