edit button on image template for logged in users