fixes and changes to Texture2D extensions

- fixed non-square textures throwing errors when clearing borders
+added optional argument to make the texture no longer readable after
clearing borders.