This patch adds a basic dialog to change brightness, contrast and gamma correction for the selected layer.