updated swapPatterns
Removed ImageArray class

Removed dependencies in PatternImage and updated constructor for
PatternArea to take ImageClass reference.