Changed texture uploads to use new optional param for generating mipmaps