now i want to tweak it so that if the image is placed at the extreme right of the window, the preview should be shown at left.
i tried using if else conditions and also giving conditions depending on the width of the $(document), but it is not working.
if anyone can help please.