Added permissions controls for deleted documents and archived.
Repaired few issues with image handlging