fixing image code