More tests for images and files, new endpoints for retrieving them