added flipX/Y