Chaotic Functions for Image Encryption