Added resizing on the diagonals as well as the sides.