changed certificate model from pdf to image