Made AnalyzedImage use a 2d array for better performance