computing patches from image