Pause animated GIF when app is in background