Removed unused image resizing code.