Documents:fix rotating,optimizing images