add image uploading code but it's not finished.