Updated

Simpler method for extracting array from image