Fix bitmap dump

Fix #400