add spaces and change image addresses