Changed frontend so that preview reflects the size of the working area.