added controller function to update galaxies and renamed galaxy images