setResolution functions added, performance optimizations for cinder texture refresh