Robust MAD substitutes std deviation in group_images_in_blocks