How to use mockup

How to use JPEG mockup and PSD template with smart object. Easy instructions with detailed photos