Bringing back the size argument. Also improving the iteration over the backgrounds list for width and height