fixed weird error where all the tags were showing up on first page and thus crashing the program, properly discards images not in use now