Image Encryption Based on the Finite Field Cosine Transform