Self-Organizing Map Python implementation for images