Got image extraction to sort of work