implemented pinch action and store pictures as local files