Image printing issue in Zebra printer for iOS

I tried to print an image using the sample code provided by Zebra, It doesn't print the desired image instead it prints some unreadable text . Please help as soon as possible