2d analisys implemented gray images