Optimizations-of-a-Cryptographic-Method-Using-Gray-Scale-Digital-Images