fixes for flash and put texture in right orientation