updated resize image function