diff --git a/graphics.go b/graphics.go
index 9468d1667ade1053b7f207103e63a7d4b822b02f..e525ef1607b8ef58c480a40053c68997227e634a 100644
--- a/graphics.go
+++ b/graphics.go
@@ -23,7 +23,7 @@ func (s *Sprite) SetPicture(pic Picture) {
 	oldPic := s.d.Picture
 	s.d.Picture = pic
 
-	if oldPic.Bounds() == pic.Bounds() {
+	if oldPic != nil && oldPic.Bounds() == pic.Bounds() {
 		return
 	}