Are you looking at encrypting just the image data or the entire file? If you want to encrypt the entire file, then you don't have to worry about what it is. If you only want to encrypt the image...