Remove trailing spaces
Fix image references