Encryption and implementation of digital images