refactor: image editor fixes