                     }
                     
                     return image
-                    
-                } else if bitmaps.allSatisfy({ $0.channels.allSatisfy { $0.bitRange.count == 16 && $0.format == .unsigned } }) {
+                }
+                
+                if bitmaps.allSatisfy({ $0.channels.allSatisfy { $0.bitRange.count == 16 && $0.format == .unsigned } }) {
                     
                     var image = Image<Gray32ColorPixel>(width: width, height: height, resolution: resolution, colorSpace: colorSpace, fileBacked: fileBacked)
                     

        }
        
        return image
        
    }
}

                }
                
                return image
            }
            
            if bitmaps.allSatisfy({ $0.channels.allSatisfy { $0.bitRange.count == 8 ||
                $0.bitRange.count == 16 ||
                $0.bitRange.count == 32 ||
                $0.bitRange.count == 64 } }) {
