better logging
TODO: write HTTP headers for image downloading