small improvement to ImageEditor