fix image resizer on webkit