GUI added. Trying out contrast stretch. Image file-write is now optional.