Add background code. Buggy...if you have a width < height, will crash