minor fixes

multiple images with the same name can now be uploaded;
fixed newlines disappearing when editing post
...