Update img_patch.m

an abs() function has added, the original expression will make a mistake in the case:bb=[3.6;3.4;3;3]