improved release graphics resources

Change-Id: I0d103f0a238a1fc789c20e8dabd1d4e5662cc5f0