Added scale and flip rendering