backward compatibility for buildimage
Merge pull request #73 from cheneydeng/master

backward compatibility for buildimage