do not show lone dash in collapsed cdm when content preview is disabled
add js hook for floating title
image.php: Flush headers and output buffer to prevent a leading empty line in some instances.

Signed-off-by: Martin Stone <martin@d7415.co.uk>
Merge pull request #243 from d7415/master

image.php: Remove possible leading line from images