Fixed texture memory leak and smoothed movement