Fixed Textures class

Fixed null pointer exception crash caused by late hour I made that commit.
Gitignore update

Updated to ignore linux files:
Directory view settings .directory
Gedit files filename~