Use optional type for backgroundImage

After I cloned the project and tried to play around, I immediately found that the Swift project can be compiled due to a type error.