-Refactored Grapher to use the same code for the photo dialog as the rest of the website