fix image attachment from uri