fixing image count uploading