Online Resize Image Without Losing Quality