Remove last spaces
Replace image urls