Refactoring to use pixelzoo.h API from iOS