Image preview not generated on node edit page My content type has field type "Image" and using "Media selector" to upload images.

Images are uploaded properly but not previewed at the same time on node add/edit page. I can check that preview is generated with firebug. 

If I go to library then again preview not displayed but after saving node it is displaying.

What could be the issue?
There should not be any blank line before opening or after closing php tags. The chances of having it with index.php, template.php,settings.php etc. files