* bugfix for markBadPixels. it should now work with images that are smaller than the limits defined for the grid value.