You know, an image file is just a bunch of bytes, it has nothing special with respect cryptography. The easy path would be using a library having the crypt/decrypt functionality of your favourite (or a just a 'robust') algorithm.
There are many possible candidate libraries around, have a look, for instance, at
OpenSSL[
^].