Fixes #5 (closed). Adds support for directories containing images. Also updated the build instructions.