Change img_ignore

Add a check to see if the img_ignore is over 500 entries. If so call reset_img_ignore (keeping function as it may be used again later.)
Better (and simpler) check to see if image is in img_ignore