added rails module, split image into image, repo and tag