Exact Image HEAD formula

Closes #47.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>