Added test for picture rotate, deletes old files