* fix image and text message handling by correctly specify the mime types