diff --git a/src/modules/Image/image.c b/src/modules/Image/image.c
index cfef2186f7a70c9992d31f765f17f8a4f723758f..84cef371d3a81c8a88f243eadd3a9b4642927166 100644
--- a/src/modules/Image/image.c
+++ b/src/modules/Image/image.c
@@ -1,4 +1,4 @@
-/* $Id: image.c,v 1.42 1997/10/15 00:40:09 mirar Exp $ */
+/* $Id: image.c,v 1.43 1997/10/21 13:32:13 mirar Exp $ */
 
 /*
 **! module Image
@@ -6,7 +6,7 @@
 **!     This module adds image-drawing and -manipulating
 **!	capabilities to pike. 
 **! note
-**!	$Id: image.c,v 1.42 1997/10/15 00:40:09 mirar Exp $<br>
+**!	$Id: image.c,v 1.43 1997/10/21 13:32:13 mirar Exp $<br>
 **! see also: Image.font, Image.image
 **!
 **! class image
@@ -107,7 +107,7 @@
 
 #include "stralloc.h"
 #include "global.h"
-RCSID("$Id: image.c,v 1.42 1997/10/15 00:40:09 mirar Exp $");
+RCSID("$Id: image.c,v 1.43 1997/10/21 13:32:13 mirar Exp $");
 #include "pike_macros.h"
 #include "object.h"
 #include "constants.h"
@@ -2624,7 +2624,7 @@ static void image_map_fs(INT32 args)
    while (i--)
    {
       image_floyd_steinberg(s,xs,errb,w=!w,res,ct,1);
-      for (j=0; j<THIS->xsize; j++)
+      for (j=0; j<xs; j++)
 	 *(d++)=ct->clut[res[j]];
       s+=xs;
    }
diff --git a/src/modules/Image/x.c b/src/modules/Image/x.c
index 7c7b61d31bd5eb8b471bc0a5d4f09d3df5ff5428..4805a38c390efca364e4458a118efbdd761794e2 100644
--- a/src/modules/Image/x.c
+++ b/src/modules/Image/x.c
@@ -1,4 +1,4 @@
-/* $Id: x.c,v 1.11 1997/10/12 21:10:53 mirar Exp $ */
+/* $Id: x.c,v 1.12 1997/10/21 13:36:07 mirar Exp $ */
 
 /*
 **! module Image
@@ -12,7 +12,7 @@
 
 #include "stralloc.h"
 #include "global.h"
-RCSID("$Id: x.c,v 1.11 1997/10/12 21:10:53 mirar Exp $");
+RCSID("$Id: x.c,v 1.12 1997/10/21 13:36:07 mirar Exp $");
 #include "pike_macros.h"
 #include "object.h"
 #include "constants.h"
@@ -164,7 +164,7 @@ void image_to8bit_fs(INT32 args)
    while (i--)
    {
       image_floyd_steinberg(s,xs,errb,w=!w,res,ct,1);
-      for (j=0; j<THIS->xsize; j++)
+      for (j=0; j<xs; j++)
 	 *(d++)=ct->index[res[j]];
       s+=xs;
    }