Encrypts and decrypts images.