imported old code from jdjangoextentiosn
added the stamp viewer