Fixed build link

When a new image is created and user clicks "build", then
new target image is being created, but there is no image version
yet for this target image. In this case we create default image version
for asssociated base image.

Fixes #379
Added cucumber test for image building
Merge pull request #395 from jprovaznik/build_link

Fixed build link on image show page