change fileSize to imageSize