Merge pull request #662 from billhollings/master

Multiple fixes to image clear and texture memory (CTS)