Added image upload and download with APFile.