C image resizing. Html tutorial 5 resizing images,and centering them