add strip function to layout.tpl
add objectEdit template function
apply template inheritance to media/image template snippet