Delete trailing whitespace
Add resizable flag to setGraphicsMode method