diff --git a/widgets/rb-fading-image.c b/widgets/rb-fading-image.c
index ec73f28..10e0832 100644
--- a/widgets/rb-fading-image.c
+++ b/widgets/rb-fading-image.c
@@ -99,6 +99,23 @@ prepare_image (cairo_t *cr, cairo_pattern_t **save, GdkPixbuf *pixbuf)
 	}
 
 	if (pixbuf != NULL) {
+		cairo_surface_t *target = cairo_get_target (cr);
+		if (cairo_surface_get_type (target) == CAIRO_SURFACE_TYPE_IMAGE) {
+			rb_debug ("target = image:%x:%dx%dx%d; pixbuf = %dx%dx%d",
+				cairo_surface_get_content (target),
+				cairo_image_surface_get_width (target),
+				cairo_image_surface_get_height (target),
+				cairo_image_surface_get_format (target),
+				gdk_pixbuf_get_width (pixbuf),
+				gdk_pixbuf_get_height (pixbuf),
+				gdk_pixbuf_get_n_channels (pixbuf));
+		} else {
+			rb_debug ("target = %x; pixbuf = %dx%dx%d",
+				cairo_surface_get_content (target),
+				gdk_pixbuf_get_width (pixbuf),
+				gdk_pixbuf_get_height (pixbuf),
+				gdk_pixbuf_get_n_channels (pixbuf));
+		}
 		gdk_cairo_set_source_pixbuf (cr, pixbuf, 0.0, 0.0);
 		*save = cairo_get_source (cr);
 		cairo_pattern_reference (*save);
