I am trying to encrypt an image file, but when I try to execute my code, I get the error "TypeError: Object type cannot be passed to C code",