First time here? Check out the FAQ!
Add this line, background = np.ascontiguousarray(background) and it would work.