Updated to handle link image uploading.