image parsing and resizing complete