On-board format-independent security of functional magnetic resonance images