I have designed a opamp based voltage peak detector. As shown in the diagram below. however the output voltage only follows the input I thought i had the cap sized right to hold the value longer. The input wave is only about 1ns or smaller pulse is the goal.