improved release graphics resources

Change-Id: If0f690ae10d4915c10930263fa4aff76ec8b6bb6