fix image sending to handle both base64 images and plain bytes
fix image sending to handle both base64 images and plain bytes

hugovk/twitter,sixohsix/twitter,tytek2012/twitter,Adai0808/twitter,jessamynsmith/twitter,miragshin/twitter