Introduce models.Graph.render function
Add test to check how graphs are rendered into images
Move models.Graph validation to serializer class