Update media.py

Extending function for storing images on S3 using ThreadPoolExecutor.