If you have a heavy website with lots of images and/or photographs, it is sometimes better to host these files externally than on your own website, depending on the service, this can have a huge effect on loading times. Of course, before you do add these files, it is best to optimise all of the images and strip out any code such as the EXIF data. Amazon Web Services offers S3 storage which is extremely cost-effective and you can use the code above to serve images to your website.