Create getpatches.m

Function to get Image patches from HD images