Fixed resizing of the textarea and image size in the preview pane