Fix double // when root folder is '/'.
Merge pull request #947 from Sophist-UK/fix_image_element_path_stuff

Fix image element path stuff