Associative memory design for 256 gray-level images using a multilayer neural network