added temporary option to repeat rendering a sprites