added some functions

added: index range check, gamma control, get[rgb].