added rectangular selection, factored out texture-handling
implemented center-selection, off-screen rendering