add unit tests for image extraction