Code optimization. Started work on allowing larger texture sizes