Update the home page pictures by function