fix bug on create certificate with no images
fix bug on update certificate deleting images