COMP: Fix premature exit of while loop

Only flip the png's, imagemagick does not support metaimage

Change-Id: Icb1acaefa994283f39976cf74951d7a9012b61ed