Fix flipgridx for multi-frame images