removed duplicate image extraction method