add bar plotting, TODO: fix image plotting scale