[PATCH v2] fit_image: Use calloc() to fix reproducibility issue