@herbert
I think you mean spawn_image!, not spawn_sprite! in the first line on page 149?
spawn_image!
spawn_sprite!