Fix attaching images.

Use specified format for posting tweet when attaching image from file.
Fix: Sometimes attached images are grayed out which attached via clipboard.