Update to add background repeat options, thanks to Viacheslav Abramovich for the code