added flipX/flipY