fixing image problems