fix save image issue in editor