Improve documents loader

The documents loader now copies images to public/images/documents and
creates low-res and thumbnail versions for each image