Region Editor: Fix pixel intensity and refactoring