New imageData parsing method
Even even more refactoring and optimizations