private RenderableObject generateImage(Scanner inFile) {
		Point loc = null;
		String f = "";
		String current = inFile.next();
		while (inFile.hasNext()
				&& !(isCloseTag(current) && parseTag(current) == LegalTag.Object)) {
			if (isOpenTag(current)) {
				switch (parseTag(current)) {
				case Location:
					loc = new Point(inFile.nextInt(), inFile.nextInt());
					break;
				case Source:
					f = inFile.nextLine();
					break;

				default:
					break;
				}
			}
			current = inFile.next();

		}
		RenderableImage img = new RenderableImage(f);
		img.setLocation(loc);
		return img;
	}