implemented smart object and created zoom function