Remove flip variable in animated sprite code