Laying foundation for image uploading.