Added utility function to main module (maybe not the right place?)
- Refactorized image#build
- Added image#build_from_dir
- New test suite to check build_from_dir