Problem turning ggplot into 3D graph (using rayshader)

Had the same problem and got resolved if instead of using theme_void() setting explicitly the elements as blank:

    Plot = Score_image %>% 
    ggplot(aes(x=as.numeric(x),
             y=as.numeric(y), fill= PC_1)) + 
    geom_raster() +
    scale_fill_viridis(na.value = "white") +
    theme(legend.position = "none", 
        axis.line=element_blank(), 
        axis.text.x=element_blank(), axis.title.x=element_blank(),
        axis.text.y=element_blank(), axis.title.y=element_blank(),
        axis.ticks=element_blank(), 
        panel.background = element_blank()) # Clean Everything