extended capabilities for working with gray scale images