closes #173 and fixes a tiny error in the building image factory