Replace GetPixelIndex with inline code
Add class Converter