Added javascript for inline image display