python: zoom of images by pixel duplication