Update ReliefFrame and fix gradient surface leaks
Fix image surface memory leak