Fixed so the parser only runs on images.