i was trying to add a background into the Cache
and when i came accost the login box it flashes
could anyone help?

code below in case you are willing to help and need it


new background in drawlog()
Code:
private void drawLogo()
	{
		byte abyte0[] = titleStreamLoader.getDataForName("title.dat");
		
		Sprite NewBGBorder = new Sprite(abyte0, this);
		NewBGBorder = new Sprite(titleStreamLoader, "rsBorder", 0);
		NewBGBorder.drawSprite(0, 0);
		aRSImageProducer_5000.initDrawingArea(); 
		
			
		
			Object obj = null;
			Object obj1 = null;
			System.gc();

	}

drawloginScreen method
Code:
private void drawLoginScreen(boolean flag)
	{


		aRSImageProducer_1109.initDrawingArea();
		aBackground_966.method361(0, 0);
		char c = '\u0168';
		char c1 = '\310';
		if(loginScreenState == 0)
		{
			int i = c1 / 2 + 80;
			aTextDrawingArea_1270.method382(0x75a9a9, c / 2, onDemandFetcher.statusString, i, true);
			i = c1 / 2 - 20;
			chatTextDrawingArea.method382(0xffff00, 200, "Welcome to ZhsScape", 0, true);
			i += 30;
			int l = c / 2 - 80;
			int k1 = c1 / 2 + 20;
			aBackground_967.method361(l - 73, k1 - 20);
			chatTextDrawingArea.method382(0xffffff, l, "New User", k1 + 5, true);
			l = c / 2 + 80;
			aBackground_967.method361(l - 73, k1 - 20);
			chatTextDrawingArea.method382(0xffffff, l, "Existing User", k1 + 5, true);
		}
		if(loginScreenState == 2)
		{
			int j = c1 / 2 - 40;
			if(loginMessage1.length() > 0)
			{
				chatTextDrawingArea.method382(0xffff00, c / 2, loginMessage1, j - 15, true);
				chatTextDrawingArea.method382(0xffff00, c / 2, loginMessage2, j, true);
				j += 30;
			} else
			{
				chatTextDrawingArea.method382(0xffff00, c / 2, loginMessage2, j - 7, true);
				j += 30;
			}
			chatTextDrawingArea.method389(true, c / 2 - 90, 0xffffff, "Username: " + myUsername + ((loginScreenCursorPos == 0) & (loopCycle % 40 < 20) ? "@[email protected]|" : ""), j);
			j += 15;
			chatTextDrawingArea.method389(true, c / 2 - 88, 0xffffff, "Password: " + TextClass.passwordAsterisks(myPassword) + ((loginScreenCursorPos == 1) & (loopCycle % 40 < 20) ? "@[email protected]|" : ""), j);
			j += 15;
			if(!flag)
			{
				int i1 = c / 2 - 80;
				int l1 = c1 / 2 + 50;
				aBackground_967.method361(i1 - 73, l1 - 20);
				chatTextDrawingArea.method382(0xffffff, i1, "Login", l1 + 5, true);
				i1 = c / 2 + 80;
				aBackground_967.method361(i1 - 73, l1 - 20);
				chatTextDrawingArea.method382(0xffffff, i1, "Cancel", l1 + 5, true);
			}
		}
		if(loginScreenState == 3)
		{
						chatTextDrawingArea.method382(0xffff00, c / 2, "Create a free account", c1 / 2 - 60, true);
			int k = c1 / 2 - 35;
			chatTextDrawingArea.method382(0xffffff, c / 2, "To create a new account you need to", k, true);
			k += 15;
			chatTextDrawingArea.method382(0xffffff, c / 2, "go back to the main ZhsScape webpage", k, true);
			k += 15;
			chatTextDrawingArea.method382(0xffffff, c / 2, "and choose the red 'create account'", k, true);
			k += 15;
			chatTextDrawingArea.method382(0xffffff, c / 2, "button at the top right of that page.", k, true);
			k += 15;
			int j1 = c / 2;
			int i2 = c1 / 2 + 50;
			aBackground_967.method361(j1 - 73, i2 - 20);
			chatTextDrawingArea.method382(0xffffff, j1, "Cancel", i2 + 5, true);
		}
		aRSImageProducer_1109.drawGraphics(171, super.graphics, 202);
		
		if(welcomeScreenRaised)
		{
			welcomeScreenRaised = false;
			aRSImageProducer_1109.drawGraphics(0, super.graphics, 0);
		}
	}