brightness function implemented in final photoshop