Fixed images urls. Fixed URL addressing when using subfolders or the webroot folder.
Fixed lots of url redirections that were pointing to the wrong places. Also fixed marked image rendering.