Centre graphic in middle of window
Fixed broken code