read bitmap dimensions