when we create an image via this method, an empty page appears in acrobat and nothing is shown there. but as I said before in first method whole page render correctly.
all elements are same in both test cases and only different is in their 'flag' in image element. I traced the code carefully and nothing is different rather than 'flag'.
really confusing
Thanks for your help again