Implement image extraction

@fvieira 
Implemented our own version of image extraction