Made barcode generator work for iOS 5/6