update size of graph images