trying to fix some image problems