Graphics object memory trimming.
Finish memory trim implementation; fix build