remove cruft and add html for sharing
Position frame based on canvas size
Switch image size to match space between frame