finish preview

ui done
binary image converted into base64 encoded string
debug prints removed from tweet.py