added image resizing
image resize functions