status=SetImageExtent(image,image->columns,image->rows,exception);
if (status == MagickFalse)
break;
+ (void) SetImageBackgroundColor(image,exception);
if ((image->storage_class != PseudoClass) && (bpp < 24))
{
image->colors=one << bpp;
status=SetImageExtent(image,image->columns,image->rows,exception);
if (status == MagickFalse)
break;
+ (void) SetImageBackgroundColor(image,exception);
if ((image->colors == 0) && (bpp != 24))
{
image->colors=one << bpp;