Fundamentals of Image Encryption