OK.

To rename a file, I would do this:

1.) Read the whole file
2.) Write it to a new file
3.) Delete old file

about the rotating picture, if you can't find a component to do it, write one.