Update Graphic.scala

Added the above method