Added png flatten to convert()