buaazp: support p=4 square image