Fix resize tool for ios6